package cn.gok.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author 陈少华
 * @create 2022-07-14 10:31
 **/


@Component("student1")
//注册到spring容器
@Data
//相当于自动生成set、get、hashcode、equals、tostring
//无参、满参的构造方法
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "student")
//获取配置的、
public class Student {
//    成员变量
    private  int age;
    private String name;
//    private Map<String, String> map;
//    private  int[] arr;
//    private  Teacher teacher;
}
